class Person1 {
    name: string;
    age: number;
    constructor(name:string,age:number) {
        this.name = name;
        this.age = age
    }
    say() {
        console.log('say');

    }
    static work() {
        console.log('work');

    }
}
let p1 = new Person1('李雪菲',23)
p1.say()
console.log(p1.age);

console.log(p1.name);

Person1.work()